package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 好友请求参数
 * @author LikeAdmin
 */
@Data
@ApiModel("好友请求更新参数")
public class UserFriendRequestUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "发起者用户ID")
    private Integer userId;

    @NotNull(message = "toUserId参数缺失")
    @ApiModelProperty(value = "接受者用户ID")
    private Integer toUserId;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "类型[0=等待验证 1=同意(好友) 2=拒绝]")
    private Integer type;

}
